//目标    创建一副扑克牌，不包括大小王，打印这副扑克拍

type Deck = NormalCard[]
type Color = "♥️"|"♠️"|"♣️"|"♦️"
type NormalCard = {
    color:Color
    mark:number
}
function createdDeck(): Deck {
    const deck:Deck = []
    for(let i = 1; i <= 13; i ++) {
        deck.push({
            mark:i,
            color:"♠️"
        })
        deck.push({
            mark:i,
            color:"♣️"
        })
        deck.push({
            mark:i,
            color:"♥️"
        })
        deck.push({
            mark:i,
            color:"♦️"
        })
    }
    return deck
}

function printDeck(deck:Deck) {
     deck.forEach(card => {
         let str = card.color
         if(card.mark <= 10) {
            str += card.mark
         } else if(card.mark === 11) {
            str += "J"
         } else if(card.mark === 12) {
            str += "Q"
         } else if(card.mark === 13) {
            str += "K"
         }
         console.log(str)
     })
}

let card = createdDeck()
printDeck(card)